/**
 * 2009-10-23 下午05:38:52 
 * esignature
 * com.smc.security
 * AuthenticationManager
 */
package com.smc.security;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author chenheng
 * @version 0.0.1
 * 认证授权管理器
 */
public interface AuthenticationManager {
	/**
	 * 匿名认证
	 * @param request
	 * @param response
	 */
	public void anonymousAuthentication(HttpServletRequest request,HttpServletResponse response);
	/**
	 * Cookie认证
	 * @param request
	 * @param response
	 */
	public void remembermeAuthentication(HttpServletRequest request,HttpServletResponse response);
	/**
	 * 用户名密码认证
	 * @param request
	 * @param response
	 * @throws Exception
	 */
	public void usernamePasswordAuthentication(HttpServletRequest request,HttpServletResponse response) throws Exception;
	/**
	 * 注销
	 * @param request
	 * @param response
	 */
	public void logout(HttpServletRequest request,HttpServletResponse response);
}
